import { createApp } from 'vue'
import App from './App.vue'
import './assets/init.css'
import router from './router';
import './utils/rem.js' // 导入 rem.js 让加载项目时就计算 rem 值
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import { createPinia } from 'pinia'
import vue3SeamlessScroll from 'vue3-seamless-scroll';
import * as ElementPlusIconsVue from '@element-plus/icons-vue'

const app = createApp(App)
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}
app.use(createPinia()).use(router).use(vue3SeamlessScroll).use(ElementPlus).mount('#app')
